﻿//=====================================================================================================
// LocalizationLibrary
// The Localization Library is a collection of reusable software component that provide 
// support for localization. This library enable you to localize WPF, Silverlight and WP7 applications.
// (http://localizationlibrary.codeplex.com)
//=====================================================================================================
// Author: Nicola Gallo (Website: www.nicola.gallo.name, Email: nicolagmt@hotmail.it) 
//=====================================================================================================

namespace SLS.ExClassLib.Loc
{
    //.NET References
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Reflection;
    using System.Text;

    /// <summary>
    /// Event data for assembly.
    /// </summary>
    public class AssemblyEventArgs
    {
        //Constructors

        /// <summary>
        /// <see cref="AssemblyEventArgs"/>'s constructor.
        /// </summary>
        /// <param name="assembly">Assembly published.</param>
        /// <exception cref="ArgumentNullException">
        /// Thrown whether <paramref name="assembly"/> parameter is null.
        /// </exception>
        public AssemblyEventArgs(Assembly assembly)
        {
            if (assembly == null)
            {
                throw new ArgumentNullException("assembly parameter shouldn't be null.");
            }
            this.Assembly = assembly;
        }

        //Properties

        /// <summary>
        /// Gets current assembly.
        /// </summary>
        public Assembly Assembly { get; private set; }
    }
}